package alexattar.gdxtest;

public enum Shield implements Item {

	SIF("Structural Field", 100, 1),
	AIF("Advanced Field", 250, 2);
	
	private final String name;
	private final int price;
	private final int armor;
	
	private Shield(String name, int price, int armor) {
		this.name = name;
		this.price = price;
		this.armor = armor;
	}
	
	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getSimpleName() {
		return "shield-" + name().replaceAll("_", "-").toLowerCase();
	}

	@Override
	public int getPrice() {
		return price;
	}
	
	public int getArmor() {
		return armor;
	}
	
	@Override
	public String toString() {
		return String.format("%s (%s) - Armor: %d", name, "$" + price, armor);
	}

}
